package com.sdvdxl;

import com.sdvdxl.model.BlogEntity;
import com.sdvdxl.util.GlobalVars;

public class BlogNotFoundException extends Exception {
	private static final long serialVersionUID = 6653129186381173425L;
	private BlogEntity blog;

	public BlogNotFoundException() {
	}

	public BlogNotFoundException(BlogEntity blogEntity) {
		this.blog = blogEntity;
	}

	@Override
	public StackTraceElement[] getStackTrace() {
		return new StackTraceElement[0];
	}

	@Override
	public String toString() {
		return "blog not found in path:"
				+ GlobalVars.getInstance().getBlogPath() + "/" + blog.getPath()
				+ "/" + blog.getBlogId();
	}

}
